package com.example.administrator.ygddriver.into.login.driverjoin;

import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.administrator.ygddriver.R;

import java.util.List;

public class DriverJoinAdapter extends BaseQuickAdapter<DriverJoinRequestBean.ResultBean.DriverTypesBean, BaseViewHolder> {
    public DriverJoinAdapter(int layoutResId, @Nullable List<DriverJoinRequestBean.ResultBean.DriverTypesBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, DriverJoinRequestBean.ResultBean.DriverTypesBean item) {
        Glide.with(mContext).load(item.getC_url()).into((ImageView) helper.getView(R.id.item_driver_join_iv));

    }
}
